#include<reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit adcs=P3^5;
sbit adwr=P3^6;
sbit adrd=P3^7;
void init()
	{
		adcs=0;
	}
void ADWR()
	{
		adwr=1;
		adwr=0;
		adwr=1;
	}
void delay(uint z)
{
uint i,j;
for(i=z;i>0;i--)
    for(j=110;j>0;j--);
}
void main()
	{
		init();
		while(1)
		{
			ADWR();
			delay(10);
			adrd=0;
			delay(5);
			adrd=1;
			delay(5);
		}
	}
